<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateQhUserFollowSchoolTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qh_user_follow_school', function (Blueprint $table) {
            $table->id();
            $table->integer('schoolId', false, true)->comment('学校Id');
            $table->integer('userId', false, true)->comment('用户Id');
            $table->timestamps();
        });

        DB::statement("ALTER TABLE qh_user_follow_school comment '用户关注的学校'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qh_user_follow_school');
    }
}
